home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / tests / mock / mockconversation.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  2KB  |  40 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. from util.observe import Observable, ObservableList, ObservableDict
  5. from tests.mock.mockbuddy import MockBuddy
  6. from util import Storage
  7. from Queue import Queue
  8. __metaclass__ = type
  9.  
  10. class MockConversation(Observable):
  11.     
  12.     def __init__(self):
  13.         Observable.__init__(self)
  14.         bud = MockBuddy('fakebuddy')
  15.         self.name = 'fakebuddy'
  16.         self.me = MockBuddy('digsby007')
  17.         self.room_list = ObservableList([
  18.             bud,
  19.             self.me])
  20.         self.typing_status = ObservableDict()
  21.         self.buddy = bud
  22.         self.messages = Queue()
  23.         self.protocol = Storage(self_buddy = self.me, buddies = {
  24.             'digsby007': self.me })
  25.         self.ischat = False
  26.  
  27.     
  28.     def send_typing_status(self, *a):
  29.         pass
  30.  
  31.     
  32.     def _send_message(self, msg):
  33.         self.sent_message(msg)
  34.  
  35.     
  36.     def exit(self):
  37.         pass
  38.  
  39.  
  40.